﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace MilageMVC.Models
{
    public class Vehicle
    {
        public int VehicleID { get; set; }
        [Required]
        [StringLength(100)]
        [Display(Name = "Model Name")]
        public string Name { get; set; }

        [StringLength(4)]
        public string Year { get; set; }

        [Display(Name="Manufacturer")]
        public string Make { get; set; }

        public virtual ICollection<Mileage> Mileages { get; set; }
        public string UserName { get; set; }
    }
}